package com.lemon.cloud.elasticsearch.config.provider.impl;

import com.lemon.cloud.elasticsearch.config.provider.IndexNameProvider;
import org.springframework.stereotype.Component;

import java.time.LocalDate;

@Component("monthIndexNameProvider")
public class MonthIndexNameProvider implements IndexNameProvider {

    @Override
    public String getSuffix() {
        return LocalDate.now().getMonth().toString();
    }
}
